package com.heima.admin.controller.v1;


import com.heima.admin.service.AdUserService;
import com.heima.model.admin.dtos.AdUserDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/aduser/")
public class AdUserController {


    @Autowired
    private AdUserService adUserService ;


    @PostMapping("login")
    public ResponseResult login(@RequestBody AdUserDto adUserDto){

        ResponseResult login = adUserService.login(adUserDto);
        return login;
    }
}
